<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

// 公共房产付费项
class HouseFeeConfig extends Model
{
    protected $fillable = [
        'name',
        'type',
        'unit'
    ];

    const TYPE_FIXED = 'fixed';
    const TYPE_METER_READING = 'meter_reading';
    const TYPE_CYCLE = 'cycle';

    public static $typeMap = [
        self::TYPE_FIXED => '固定收费',
        self::TYPE_METER_READING => '抄表收费',
        self::TYPE_CYCLE => '每期收费'
    ];
}
